package com.practice.order.feign;
import java.math.BigDecimal;

import com.practice.order.product.Product;
import org.springframework.stereotype.Component;

@Component
public class ProductFeignClientFallback implements ProductFeignClient{
    @Override
    public Product getProduct(Long productId) {

        Product product = new Product();
        product.setId(productId);
        product.setPrice(new BigDecimal("0"));
        product.setProductName("未知商品");
        product.setNum(0);

        return product;
    }
}


